package com.xinyue.gateway.server.handler.model;

import io.netty.util.AttributeKey;

public class GateUserInfo {

    public final static AttributeKey<GateUserInfo> USER_INFO_KEY = AttributeKey.valueOf("user_info_key");
    private long userId;
    private long roleId;
    private String token;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getRoleId() {
        return roleId;
    }

    public void setRoleId(long roleId) {
        this.roleId = roleId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "GateUserInfo [userId=" + userId + ", roleId=" + roleId + ", token=" + token + "]";
    }


}
